package com.duqc.designpattern.decorator;

import com.duqc.util.DESUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName DESEncryption
 * @Description 装饰者模式(算法基础类)
 * @Author duqc
 * @Date 2021/5/11
 **/
@Slf4j
public class DESEncryption extends EncryptionBase {

    @Override
    public String encrypt(String string, String password) {
        log.info("使用DES加密,得到基础密文");
        return DESUtil.encrypt(string, password);
    }
}
